Sound effect processing method and mobile terminal

ABSTRACT

Embodiments of the present invention disclose a sound effect processing method and a mobile terminal. The method includes: obtaining, when a playing control instruction used for indicating an application of a mobile terminal to play a source audio file is detected, at least one frame of first data generated when the mobile terminal processes the source audio file by means of a global sound effect service; obtaining at least one frame of second data in a current playing process of the application; stopping the global sound effect service if the comparison result shows that the at least one frame of first data does not match with the at least one frame of second data; and playing a first audio file obtained by means of processing the source audio file only according to an application-level sound effect parameter of the application. Embodiments of the present invention also disclose a corresponding mobile terminal. By means of embodiments of the present invention, the fluency for playing an audio stream of a mobile terminal can be improved, memory resource management is optimized, and user experience is improved.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims benefit of Chinese Patent Application201610440056.8, filed on Jun. 16, 2016 and titled “sound effectprocessing method and mobile terminal,” the contents of which are herebyincorporated by reference in its entirety.

TECHNICAL FIELD

The disclosure relates to the technical field of mobile terminals, andmore particularly to a method and a mobile terminal for sound effectprocessing.

BACKGROUND

A sound effect is an effect achieved by a sound and refers to a soundadded to enhance the sense of reality and atmosphere of a certain scene.The added sound may include a musical sound and an effect sound, forexample, a digital sound effect, an environmental sound effect and aMoving Picture Experts Group Audio Layer-3 (MP3) sound effect (ordinarysound effect and professional sound effect).

At present, there have been many applications integrated with an audioplaying function, for example, a music player like the TTPod and a videoplayer like the Storm. Under a normal circumstance, a third-partyapplication controlled to be installed in a mobile terminal by a usermay usually have a sound effect setting function, that is, the user maypreset a sound effect of a corresponding application through a controlinterface in the corresponding application and, in a subsequent usingprocess, the mobile terminal may overlap the sound effect set by theuser and a system sound effect (i.e., a global sound effect) of themobile terminal and play an audio file configured with an overlappedsound effect.

SUMMARY

Embodiments of the disclosure provide a method and a mobile terminal forsound effect processing, so as to improve audio stream playing fluencyof the mobile terminal, optimize memory resource management and improvea user experience.

According to a first aspect, the embodiments of the disclosure provide amethod for sound effect processing. The method may include the followingactions.

Responsive to detection of a playing control instruction configured toindicate an application of a mobile terminal to play a source audiofile, at least one frame of first data generated when the mobileterminal processes the source audio file through global sound effectservice is acquired.

At least one frame of second data in a current playing process of theapplication is acquired.

When determining that the at least one frame of the first data ismismatched with the at least one frame of the second data, the globalsound effect service is disabled.

A first audio file obtained by processing the source audio fileaccording to an application-level sound effect parameter of theapplication is played.

According to a second aspect, the embodiments of the disclosure providea mobile terminal that includes functional modules. The functionalmodules are configured to execute part or all of the actions describedin any method according to the first aspect of the embodiments of thedisclosure.

According to a third aspect, the embodiments of the disclosure provide amobile terminal that may include:

a processor, a memory, a communication interface and a communicationbus, wherein the processor, the memory and the communication interfacemay be connected and communicate to each other through the communicationbus.

The memory may store an executable program code, and the communicationinterface may be configured for wireless communication.

The processor may be configured to call the executable program code inthe memory to execute part or all of the actions described in any methodaccording to the first aspect of the embodiments of the disclosure.

BRIEF DESCRIPTION OF DRAWINGS

In order to describe the technical solutions in the embodiments of thedisclosure or a conventional art more clearly, the drawings required tobe used in descriptions about the embodiments or the conventional artwill be simply introduced below. Obviously, the drawings in thefollowing descriptions are only some embodiments of the disclosure.Those of ordinary skilled in the art may further obtain other drawingsaccording to these drawings without creative work.

FIG. 1 is a flowchart of a method for sound effect processing accordingto an embodiment of the disclosure.

FIG. 2 is a flowchart of another method for sound effect processingaccording to an embodiment of the disclosure.

FIG. 3 is a flowchart of another method for sound effect processingaccording to an embodiment of the disclosure.

FIG. 4 is a composition block diagram of units of a mobile terminalaccording to an embodiment of the disclosure.

FIG. 5 is a composition block diagram of units of a mobile terminalaccording to an embodiment of the disclosure.

FIG. 6 is a structure diagram of a mobile terminal according to anembodiment of the disclosure.

FIG. 7 is a structure diagram of another mobile terminal according to anembodiment of the disclosure.

DETAILED DESCRIPTION

In order to make the solutions of the disclosure better understood bythose skilled in the art, the technical solutions in the embodiments ofthe disclosure will be clearly and completely described below incombination with the drawings in the embodiments of the disclosure.Obviously, the described embodiments are not all embodiments but part ofembodiments of the disclosure. All other embodiments obtained by thoseof ordinary skilled in the art on the basis of the embodiments in thedisclosure without creative work shall fall within the scope ofprotection of the disclosure.

Terms “first”, “second” and the like in the specification, claims anddrawings of the disclosure are adopted not to describe a specificsequence but to distinguish similar objects. In addition, terms“include” and “have” and any transformation thereof are intended tocover nonexclusive inclusions. For example, a process, method, system,product or equipment including a series of steps or units is not limitedto the steps or units which are listed, but may optionally furtherinclude steps or units which are not listed or optionally furtherinclude other steps or units intrinsic to the process, the method, theproduct or the equipment.

“Embodiment” mentioned in the disclosure means that a specificcharacteristic, structure or property described in combination with theembodiment may be included in at least one embodiment of the disclosure.Appearance of this phrase at each position in the specification may notalways refer to the same embodiment as well as an independent oralternative embodiment mutually exclusive with the other embodiments.Those skilled in the art explicitly and implicitly understand that theembodiments described in the disclosure may be combined with the otherembodiments.

In order to better understand a method and mobile terminal for soundeffect processing disclosed by the embodiments of the disclosure,related concepts involved in the embodiments of the disclosure arebriefly introduced at first. A mobile terminal is usually preset with asystem sound effect by a developer when being delivered, the systemsound effect is a global sound effect, the global sound effect may beconfigured to configure all audio files acquired by the mobile terminal,and the global sound effect may be updated through functions of systemsetting and the like in a using process of a user. Generally speaking,the mobile terminal may configure the global sound effect for an audiofile by calling global sound effect configuration service in a system.In addition, when the mobile terminal is installed with an audio playingapplication, if the application is preset with an application-levelsound effect, i.e., a built-in sound effect, when the application isstarted, the application-level sound effect may be configured for anaudio file through independent sound effect configuration service of theapplication, the audio file configured with the application-level soundeffect may be transmitted to a system audio library of the mobileterminal, the system-level sound effect configuration servicesuperimposes an audio file in the system audio library over the audiofile generated by the global sound effect configuration service so as togenerate an audio file to be played, and a playing process of theapplication calls the audio file to be played for playing.

For a solution for sound effect processing in the conventional art, theembodiments of the disclosure provide a method for sound effectprocessing. The embodiments of the disclosure will be introduced belowin detail.

Referring to FIG. 1, FIG. 1 is a method for sound effect processingaccording to an embodiment of the disclosure. As shown in the figure,the method for sound effect processing includes the following actions.

In S101, responsive to detection of a playing control instructionconfigured to indicate an application of a mobile terminal to play asource audio file, the mobile terminal acquires at least one frame offirst data generated when the mobile terminal processes the source audiofile through global sound effect service.

In some embodiments of the disclosure, an implementation manner for theaction that the mobile terminal detects the playing control instructionconfigured to indicate the application of the mobile terminal to playthe source audio file may be as follows.

Responsive to detection of a first selection operation for the sourceaudio file of the mobile terminal, the mobile terminal outputs a playerselection interface including the application.

Responsive to detection of a second selection operation for theapplication in the player selection interface, the mobile terminalgenerates the playing control instruction configured to indicate theapplication to play the source audio file.

The first selection operation and the second selection operation may be,for example, touch operations and voice control operations, which willnot be limited in the disclosure.

A specific implementation manner for the action that the mobile terminalprocesses the source audio file through the global sound effect servicemay be as follows.

The mobile terminal decodes the source audio file into a reference audiofile. The mobile terminal configures the reference audio file throughthe global sound effect service according to a pre-stored global soundeffect parameter.

The global sound effect parameter includes at least one of the followingparameters: a Compress parameter, an Amp-Type parameter, an EQ_Bassparameter, an EQ_Mid parameter, an EQ_Treble parameter or a Noise_Gateparameter.

In at least one embodiment, the at least one frame of the first data isfirst frame data generated when the mobile terminal processes the sourceaudio file through the global sound effect service.

In S102, the mobile terminal acquires at least one frame of second datain a current playing process of the application.

When the at least one frame of the first data is the first frame datagenerated when the mobile terminal processes the source audio filethrough the global sound effect service, the at least one frame of thesecond data is first frame data acquired by the current playing processof the application.

The second data played in the current playing process of the applicationmay be obtained by the following actions.

Responsive to detection of the application being preset with theapplication-level sound effect parameter, the mobile terminal configuresthe source audio file by using a sound effect configuration process orthread of the application according to the application-level soundeffect parameter of the application to generate third data, and a soundeffect configuration service of the mobile terminal acquires the firstdata and the third data, and superimposes the first data over the thirddata to obtain the second data.

Or, responsive to detection of the application not being preset with theapplication-level sound effect parameter, the mobile terminal acquiresthe global sound effect parameter of the mobile terminal and configuresthe source audio file by using the sound effect configuration process orthread of the application according to the global sound effect parameterto generate the third data, and the sound effect configuration serviceof the mobile terminal acquires the first data and the third data andsuperimposes the first data over the third data to obtain the seconddata. The first data, the second data and the third data are the same.

The application-level sound effect parameter is a customized soundeffect parameter of the application and includes at least one of: aCompress parameter, an Amp-Type parameter, an EQ_Bass parameter, anEQ_Mid parameter, an EQ_Treble parameter or a Noise_Gate parameter.

In S103, when determining that the at least one frame of the first datais mismatched with the at least one frame of the second data, the mobileterminal disables the global sound effect service.

The source audio file may be, for example, a prompt tone file, abackground sound file, a song file or a communication sound file.

In S104, the mobile terminal plays a first audio file obtained byprocessing the source audio file according to an application-level soundeffect parameter of the application.

It can be seen that, compared with a solution that the mobile terminalsuperimposes a global sound effect of a system of the mobile terminalover own application-level sound effect of the application in theconventional art, the embodiment of the disclosure has the advantagesthat the mobile terminal samples data processed by the global soundeffect service and data in the current playing process of theapplication, disables the global sound effect service under thecondition that it is determined by comparison that the two types of dataare mismatched and plays the first audio file obtained only byprocessing the source audio file according to the application-levelsound effect parameter of the application, so that the mobile terminalmay avoid superimposed configuration of the global sound effect and ownapplication-level sound effect of the application for the source audiofile, multiple sound effects are further eliminated, intelligence insound effect processing of the mobile terminal is improved, and a goodauditory experience is brought to a user.

Optionally, in some embodiments of the disclosure, an implementationmanner for the action that the mobile terminal acquires the at least oneframe of the first data generated when the mobile terminal processes thesource audio file through the global sound effect service may be asfollows.

The mobile terminal determines whether the application belongs to apreset application set. When determining that the application does notbelong to the preset application set, the at least one frame of thefirst data generated when the mobile terminal processes the source audiofile through the global sound effect service is acquired.

Correspondingly, after the mobile terminal disables the global soundeffect service and before the first audio file obtained by processingthe source audio file according to the application-level sound effectparameter of the application, the following action is further executed.

The application is added into the preset application set.

Furthermore, optionally, in some embodiments of the disclosure, themobile terminal further executes the following actions.

When determining that the application belongs to the preset applicationset, the mobile terminal disables the global sound effect service andplays the first audio file obtained by processing the source audio fileaccording to the application-level sound effect parameter of theapplication.

It can be seen that, in an optional embodiment of the disclosure, themobile terminal adds the application preset with the application-levelsound effect parameter into the preset application set and, in such amanner, when the user reuses the application for processing the sourceaudio file, the mobile terminal may directly judge that the applicationbelongs to the preset application set, directly disable the global soundeffect service and play the first audio file obtained only by processingthe source audio file according to the application-level sound effectparameter of the application, so that convenience and intelligence insound effect management are further improved.

Consistent with the embodiment shown in FIG. 1, referring to FIG. 2,FIG. 2 is a flowchart of another method for sound effect processingaccording to an embodiment of the disclosure. As shown in the figure,the method for sound effect processing includes the following actions.

In S201, responsive to detection of a playing control instructionconfigured to indicate an application of a mobile terminal to play asource audio file, the mobile terminal determines whether theapplication belongs to a preset application set.

In S202, when determining that the application does not belong to thepreset application set, the mobile terminal acquires at least one frameof first data generated when the mobile terminal processes the sourceaudio file through a global sound effect service.

In S203, the mobile terminal acquires at least one frame of second datain a current playing process of the application.

In S204, when determining that the at least one frame of the first datais mismatched with the at least one frame of the second data, the mobileterminal disables the global sound effect service.

In S205, the mobile terminal adds the application into the presetapplication set.

In S206, the mobile terminal plays a first audio file obtained byprocessing the source audio file according to an application-level soundeffect parameter of the application.

It can be seen that, compared with a solution that the mobile terminalsuperimposes a global sound effect of a system of the mobile terminalover own application-level sound effect of the application in theconventional art, the embodiment of the disclosure has the advantagesthat the mobile terminal samples data processed by the global soundeffect service and data in the current playing process of theapplication, disables the global sound effect service under thecondition that it is determined by comparison that the two types of dataare mismatched and plays the first audio file obtained only byprocessing the source audio file according to the application-levelsound effect parameter of the application, so that the mobile terminalmay avoid superimposed configuration of the global sound effect and ownapplication-level sound effect of the application for the source audiofile, multiple sound effects are further eliminated, intelligence insound effect processing of the mobile terminal is improved, and a goodauditory experience is brought to a user.

Consistent with the embodiments shown in FIG. 1 and FIG. 2, referring toFIG. 3, FIG. 3 is a flowchart of another method for sound effectprocessing according to an embodiment of the disclosure. As shown in thefigure, the method for sound effect processing includes the followingactions.

In S301, responsive to detection of a playing control instructionconfigured to indicate an application of a mobile terminal to play asource audio file, the mobile terminal judges whether the applicationbelongs to a preset application set.

In S302, when determining that the application belongs to the presetapplication set, the mobile terminal disables global sound effectservice.

In S303, the mobile terminal plays a first audio file obtained byprocessing the source audio file according to an application-level soundeffect parameter of the application.

It can be seen that, compared with a solution that the mobile terminalsuperimposes a global sound effect of a system of the mobile terminalover own application-level sound effect of the application in theconventional art, the embodiment of the disclosure has the advantagesthat the mobile terminal samples data processed by the global soundeffect service and data in a current playing process of the application,disables the global sound effect service under the condition that it isdetermined by comparison that the two types of data are mismatched andplays the first audio file obtained only by processing the source audiofile according to the application-level sound effect parameter of theapplication, so that the mobile terminal may avoid superimposedconfiguration of the global sound effect and own application-level soundeffect of the application for the source audio file, multiple soundeffects are further eliminated, intelligence in sound effect processingof the mobile terminal is improved, and a good auditory experience isbrought to a user.

The below is a device embodiment of the disclosure. The deviceembodiment of the disclosure is used for executing the methodimplemented by the method embodiment of the disclosure. As shown in FIG.4, a mobile terminal may include a first acquisition unit 401, a secondacquisition unit 402, a service disabling unit 403 and a first playingcontrol unit 404.

The first acquisition unit 401 is configured to, responsive to detectionof a playing control instruction configured to indicate an applicationof a mobile terminal to play a source audio file, acquire at least oneframe of first data generated when the mobile terminal processes thesource audio file through a global sound effect service.

The second acquisition unit 402 is configured to acquire at least oneframe of second data in a current playing process of the application.

The service disabling unit 403 is configured to, when determining thatthe at least one frame of the first data is mismatched with the at leastone frame of the second data, disable the global sound effect service.

The first playing control unit 404 is configured to play a first audiofile obtained by processing the source audio file according to anapplication-level sound effect parameter of the application.

As shown in FIG. 5, a mobile terminal may include the first acquisitionunit 401, second acquisition unit 402, service disabling unit 403 andfirst playing control unit 404 in the embodiment corresponding to FIG.4.

Furthermore, the first acquisition unit 401 includes a judgment unit4011 and a third acquisition unit 4012.

The judgment unit 4011 is configured to determine whether theapplication belongs to a preset application set.

The third acquisition unit 4012 is configured to, when the judgment unitdetermines that the application does not belong to the presetapplication set, acquire the at least one frame of the first datagenerated when the mobile terminal processes the source audio filethrough the global sound effect service.

The mobile terminal further includes an application addition unit 405.

The application addition unit 405 is configured to, after the servicedisabling unit 403 disables the global sound effect service and beforethe playing control unit 404 plays the first audio file obtained byprocessing the source audio file according to the application-levelsound effect parameter of the application, add the application into thepreset application set.

In at least one embodiment, the mobile terminal further includes asecond playing control unit 406.

The second playing control unit 406 is configured to, when the judgmentunit 4011 determines that the application belongs to the presetapplication set, disable the global sound effect service and play thefirst audio file obtained by processing the source audio file accordingto the application-level sound effect parameter of the application.

In at least one embodiment, the mobile terminal further includes a thirdplaying control unit 407.

The third playing control unit 407 is configured to, when determiningthat the at least one frame of the first data is matched with the atleast one frame of the second data, play a second audio file generatedby processing the source audio file through the global sound effectservice.

In at least one embodiment, on the aspect that the mobile terminalprocesses the source audio file through the global sound effect service,the first acquisition unit 401 is configured to:

decode the source audio file into a reference audio file; and

configure the reference audio file through the global sound effectservice according to a pre-stored global sound effect parameter.

In at least one embodiment, the global sound effect parameter or theapplication-level sound effect parameter includes at least one of thefollowing parameters:

a Compress parameter, an Amp-Type parameter, an EQ_Bass parameter, anEQ_Mid parameter, an EQ_Treble parameter or a Noise_Gate parameter.

In at least one embodiment, the first acquisition unit 401 includes adetection unit 4013. The detection unit 4013 is configured to,responsive to detection of a first selection operation for the sourceaudio file of the mobile terminal, output a player selection interfaceincluding the application, and responsive to detection of a secondselection operation for the application in the player selectioninterface, generate the playing control instruction configured toindicate the application to play the source audio file.

In at least one embodiment, the second acquisition unit 402 isspecifically configured to, responsive to detection of the applicationbeing preset with the application-level sound effect parameter,configure the source audio file by using a sound effect configurationprocess or thread of the application according to the application-levelsound effect parameter of the application to generate third data,acquire, through sound effect configuration service of the mobileterminal, the first data and the third data, and superimposes the firstdata on the third data to obtain the second data;

or,

responsive to detection of the application not being preset with theapplication-level sound effect parameter, acquire the global soundeffect parameter of the mobile terminal, configure the source audio fileby using the sound effect configuration process or thread of theapplication according to the global sound effect parameter to generatethe third data, acquire, through the sound effect configuration serviceof the mobile terminal, the first data and the third data, andsuperimposes the first data over the third data to obtain the seconddata, where the first data, the second data and the third data are thesame.

It should be noted that the mobile terminal described in the deviceembodiment of the disclosure is presented in form of functional unit.Term “unit” used herein should be understood as a meaning which is asbroad as possible and an object configured to realize a describedfunction of each “unit” may be, for example, an Application SpecificIntegrated Circuit (ASIC), a single circuit, a processor (shared,dedicated or chip unit) and memory configured to execute one or moresoftware or firmware programs, a combined logical circuit and/or anotherproper component realizing the function.

For example, the function of the first acquisition unit 401 may berealized by a mobile terminal shown in FIG. 6, and specifically, aprocessor 101 may call an executable program code in a memory 102 to,responsive to detection of the playing control instruction configured toindicate the application of the mobile terminal to play the source audiofile, acquire the at least one frame of the first data generated whenthe mobile terminal processes the source audio file through the globalsound effect service.

It can be seen that, compared with a solution that the mobile terminalsuperimposes a global sound effect of a system of the mobile terminalover own application-level sound effect of the application in theconventional art, the embodiment of the disclosure has the advantagesthat the mobile terminal samples data processed by the global soundeffect service and data in the current playing process of theapplication, disables the global sound effect service under thecondition that it is determined by comparison that the two types of dataare mismatched and plays the first audio file obtained only byprocessing the source audio file according to the application-levelsound effect parameter of the application, so that the mobile terminalmay avoid superimposed configuration of the global sound effect and ownapplication-level sound effect of the application for the source audiofile, multiple sound effects are further eliminated, intelligence insound effect processing of the mobile terminal is improved, and a goodauditory experience is brought to a user.

An embodiment of the disclosure further provides another mobileterminal, which, as shown in FIG. 6, includes: a processor 101, a memory102, a communication interface 103 and a communication bus 104. Theprocessor 101, the memory 102 and the communication interface 103 areconnected and communicate to each other through the communication bus104. The processor 101 controls wireless communication with an externalcellular network through the communication interface 103. Thecommunication interface 103 includes, but not limited to, an antenna, anamplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), aduplexer and the like. The memory 102 includes at least one of: a RandomAccess Memory (RAM), a non-volatile memory or an external memory. Anexecutable program code is stored in the memory 102. The executableprogram code may guide the processor 101 to execute a method for soundeffect processing disclosed in the method embodiment of the disclosure,including the following actions.

Responsive to detection of a playing control instruction configured toindicate an application of the mobile terminal to play a source audiofile, the processor 101 acquires at least one frame of first datagenerated when the mobile terminal processes the source audio filethrough global sound effect service.

The processor 101 acquires at least one frame of second data in acurrent playing process of the application.

When determining that the at least one frame of the first data ismismatched with the at least one frame of the second data, the processor101 disables the global sound effect service.

The processor 101 plays a first audio file obtained by processing thesource audio file according to an application-level sound effectparameter of the application.

It can be seen that, compared with a solution that the mobile terminalsuperimposes a global sound effect of a system of the mobile terminalover own application-level sound effect of the application in theconventional art, the embodiment of the disclosure has the advantagesthat the mobile terminal samples data processed by the global soundeffect service and data in the current playing process of theapplication, disables the global sound effect service under thecondition that it is determined by comparison that the two types of dataare mismatched and plays the first audio file obtained only byprocessing the source audio file according to the application-levelsound effect parameter of the application, so that the mobile terminalmay avoid superimposed configuration of the global sound effect and ownapplication-level sound effect of the application for the source audiofile, multiple sound effects are further eliminated, intelligence insound effect processing of the mobile terminal is improved, and a goodauditory experience is brought to a user.

An embodiment of the disclosure further provides another mobileterminal. As shown in FIG. 6, for convenient description, only partsrelated to the embodiment of the disclosure are shown, and specifictechnical details which are undisclosed refer to parts of the method ofthe embodiments of the disclosure. The mobile terminal may be any pieceof terminal equipment including a mobile phone, a tablet computer, aPersonal Digital Assistant (PDA), a Point of Sales (POS), avehicle-mounted computer and the like. For example, the mobile terminalis a mobile phone.

FIG. 7 is a block diagram of part of a structure of a mobile phonerelated to a mobile terminal according to an embodiment of thedisclosure. Referring to FIG. 7, the mobile phone includes componentssuch as a Radio Frequency (RF) circuit 910, a memory 920, an input unit930, a display unit 940, a sensor 950, an audio circuit 960, a WirelessFidelity (WiFi) module 970, a processor 980 and a power supply 990.Those skilled in the art should know that the structure of the mobilephone shown in FIG. 7 is not intended to limit the mobile phone and mayinclude components more or fewer than those shown in the figure or somecomponents are combined or different component arrangements are adopted.

Each component of the mobile phone will be specifically introduced belowin combination with FIG. 7.

The RF circuit 910 may be configured to receive and send information.The RF circuit 910 usually includes, but not limited to, an antenna, atleast one amplifier, a transceiver, a coupler, an LNA, a duplexer andthe like. In addition, the RF circuit 910 may also communicate with anetwork and other equipment in a wireless communication manner. Anycommunication standard or protocol may be used for wirelesscommunication, including, but not limited to, a Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code DivisionMultiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA),Long Term Evolution (LTE), an electronic mail, Short Messaging Service(SMS) and the like.

The memory 920 may be configured to store a software program and amodule, and the processor 980 operates the software program and modulestored in the memory 920, thereby executing various functionapplications and data processing of the mobile phone. The memory 920 maymainly include a program storage region and a data storage region,wherein the program storage region may store an operating system, anapplication program required by at least one function (for example, adata acquisition function and a data comparison function) and the like,and the data storage region may store data (for example, a global soundeffect parameter and an application-level sound effect parameter)created according to use of the mobile phone and the like. In addition,the memory 920 may include a high-speed RAM, and may further include anon-volatile memory, for example, at least one disk storage device,flash memory device or other volatile solid-state storage device.

The input unit 930 may be configured to receive input digital orcharacter information and generate key signal input related to usersetting and function control of the mobile phone. Specifically, theinput unit 930 may include a fingerprint recognition module 931 andother input equipment 932. The fingerprint recognition module 931 maycollect fingerprint data of a user thereon. Optionally, the fingerprintrecognition module 931 may include an optical fingerprint module, acapacitive fingerprint module and an RF fingerprint module. For example,the fingerprint recognition module 931 is a capacitive fingerprintrecognition module including a sensing electrode (abnormity sensingelectrode and normality sensing electrode) and a signal processingcircuit (for example, an amplification circuit, a noise suppressioncircuit and an analogue-to-digital conversion circuit) connected withthe sensing electrode. Besides the fingerprint recognition module 931,the input unit 930 may further include the other input equipment 932.Specifically, the other input equipment 932 may include, but not limitedto, one or more of a physical keyboard, a function key (for example, avolume control key and an on-off key), a trackball, a mouse, a joystickand the like.

The display unit 940 may be configured to display information input bythe user or information provided for the user and various menus of themobile phone. The display unit 940 may include a display screen 941.Optionally, the display screen 941 may be configured in form of a LiquidCrystal Display (LCD), an Organic Light-Emitting Diode (OLED) and thelike. Although the fingerprint recognition module 931 and display screen941 in FIG. 7 realize input and output functions of the mobile phone astwo independent components, the fingerprint recognition module 931 andthe display screen 941 may be integrated to realize the input and outputfunctions of the mobile phone in some embodiments.

The mobile phone may further include at least one sensor 950, forexample, a light sensor, a motion sensor and another sensor.Specifically, the light sensor may include an environmental light sensorand a proximity sensor, wherein the environmental light sensor mayregulate brightness of the display screen 941 according to brightness ofenvironmental light, and the proximity sensor may turn off the displayscreen 941 and/or backlight when the mobile phone is moved to an ear. Asa motion sensor, an accelerometer sensor may detect a magnitude of anacceleration in each direction (usually three axes), may detect amagnitude and direction of the gravity under a motionless condition, andmay be configured for an application recognizing a posture of the mobilephone (for example, landscape and portrait switching, a related game andmagnetometer posture calibration), a vibration recognition relatedfunction and the like (for example, a pedometer and knocking). Othersensors, for example, a gyroscope, a barometer, a hygrometer, athermometer and an infrared sensor, which may be configured in themobile phone will not be elaborated herein.

The audio circuit 960, a loudspeaker 961 and a microphone 962 mayprovide an audio interface between the user and the mobile phone. Theaudio circuit 960 may transmit an electric signal converted fromreceived audio data to the loudspeaker 961, and then the loudspeaker 961converts it into a sound signal for output. On the other aspect, themicrophone 962 converts a collected sound signal into an electricsignal, and then the audio circuit 960 receives and converts it intoaudio data and outputs the audio data to the processor 980 forprocessing and sending to, for example, another mobile phone through theRF circuit 910 or outputs the audio data to the memory 920 for furtherprocessing.

WiFi is a short-distance wireless communication technology. The mobilephone may help the user to receive and send an electronic mail, browse awebpage, access streaming media and the like through the WiFi module970, and provides wireless broadband Internet access for the user.Although the WiFi module 970 is shown in FIG. 7, it can be understoodthat it is not a necessary component of the mobile phone and maycompletely be omitted according to a requirement without changing thescope of the essence of the disclosure.

The processor 980 is a control center of the mobile phone, connects eachpart of the whole mobile phone by using various interfaces and lines andexecutes various functions and data processing of the mobile phone byoperating or executing the software program and/or module stored in thememory 920 and calling data stored in the memory 920, thereby monitoringthe whole mobile phone. Optionally, the processor 980 may include one ormore processing units. Preferably, the processor 980 may integrate anapplication processor and a modulation and demodulation processor,wherein the application processor mainly processes the operating system,a user interface, an application program and the like, and themodulation and demodulation processor mainly processes wirelesscommunication. It can be understood that the modulation and demodulationprocessor may also not be integrated into the processor 980.

The mobile phone further includes the power supply 990 (for example, abattery) supplying power to each component. Preferably, the power supplymay be logically connected with the processor 980 through a powermanagement system, thereby realizing functions of charging anddischarging management, power consumption management and the likethrough the power management system.

Although not shown in the figure, the mobile phone may further include acamera, a Bluetooth module and the like, which will not be elaboratedherein.

In the embodiments shown in FIG. 1, FIG. 2 and FIG. 3, each step of themethod flows may be implemented on the basis of the structure of themobile phone.

In the embodiment shown in FIG. 4 or FIG. 5, the function of each unitmay be realized on the basis of the structure of the mobile phone.

An embodiment of the disclosure further provides a computer storagemedium, wherein the computer storage medium may store a program, andwhen the program is executed, part or all of the actions of any methodfor sound effect processing recorded in the method embodiment areincluded.

It should be noted that, for simple description, each method embodimentis expressed into a combination of a series of actions. However, thoseskilled in the art should know that the disclosure is not limited by anaction sequence described herein because some steps may be executed inanother sequence or at the same time according to the disclosure.Second, those skilled in the art should also know that the embodimentsdescribed in the specification all belong to preferred embodiments andinvolved actions and modules are not always necessary to the disclosure.

Each embodiment in the abovementioned embodiments is described withdifferent emphases, and undetailed parts in a certain embodiment mayrefer to related descriptions in the other embodiments.

In some embodiments provided by the application, it should be understoodthat the disclosed device may be implemented in another manner. Forexample, the device embodiment described above is only schematic, andfor example, division of the units is only logical function division,and other division manners may be adopted during practicalimplementation. For example, multiple units or components may becombined or integrated into another system, or some characteristics maybe neglected or not executed. In addition, coupling or direct couplingor communication connection between each displayed or discussedcomponent may be indirect coupling or communication connection,implemented through some interfaces, of the device or the units, and maybe electrical or adopt other forms.

The units described as separate parts may or may not be physicallyseparated, and parts displayed as units may or may not be physicalunits, and namely may be located in the same place, or may also bedistributed to multiple network units. Part or all of the units may beselected to achieve the purpose of the solutions of the embodimentsaccording to a practical requirement.

In addition, each functional unit in each embodiment of the disclosuremay be integrated into a processing unit, each unit may also physicallyexist independently, and two or more than two units may also beintegrated into a unit. The integrated unit may be implemented in ahardware form and may also be implemented in form of software functionalunit.

When being implemented in form of software functional unit and sold orused as an independent product, the integrated unit may be stored in acomputer-readable memory. Based on such an understanding, the technicalsolutions of the disclosure substantially or parts making contributionsto the conventional art or all or part of the technical solutions may beembodied in form of software product, and the computer software productis stored in a memory, including a plurality of instructions configuredto enable a piece of computer equipment (which may be a personalcomputer, a server, network equipment or the like) to execute all orpart of the steps of the method in each embodiment of the disclosure.The memory includes: various media capable of storing program codes suchas a U disk, a Read-Only Memory (ROM), a RAM, a mobile hard disk, amagnetic disk or an optical disk.

Those of ordinary skilled in the art can understand that all or part ofthe steps in various methods of the embodiments may be completed byrelated hardware instructed by a program, the program may be stored in acomputer-readable memory, and the memory may include a flash disk, aROM, a RAM, a magnetic disk, an optical disk or the like.

The embodiments of the application are introduced above in detail, theprinciple and implementation modes of the disclosure are elaborated withspecific examples in the disclosure, and the descriptions made to theembodiments are only adopted to help the method of the disclosure andthe core concept thereof to be understood. In addition, those ofordinary skilled in the art may make variations to the specificimplementation modes and the application scope according to the conceptof the disclosure. From the above, the contents of the specificationshould not be understood as limits to the disclosure.

1. A method for sound effect processing, comprising: responsive todetection of a playing control instruction configured to indicate anapplication of a mobile terminal to play a source audio file, acquiringat least one frame of first data generated when the mobile terminalprocesses the source audio file through a global sound effect service;acquiring at least one frame of second data in a current playing processof the application; when determining that the at least one frame of thefirst data is mismatched with the at least one frame of the second data,disabling the global sound effect service; and playing a first audiofile obtained by processing the source audio file according to anapplication-level sound effect parameter of the application.
 2. Themethod according to claim 1, wherein acquiring the at least one frame ofthe first data generated when the mobile terminal processes the sourceaudio file through the global sound effect service comprises:determining whether the application belongs to a preset application set;and when determining that the application does not belong to the presetapplication set, acquiring the at least one frame of the first datagenerated when the mobile terminal processes the source audio filethrough the global sound effect service.
 3. The method according toclaim 2, wherein after disabling the global sound effect service andbefore playing the first audio file obtained by processing the sourceaudio file according to the application-level sound effect parameter ofthe application, the method further comprises: adding the applicationinto the preset application set.
 4. The method according to claim 2,further comprising: when determining that the application belongs to thepreset application set, disabling the global sound effect service, andplaying the first audio file obtained by processing the source audiofile according to the application-level sound effect parameter of theapplication.
 5. The method according to claim 1, further comprising:when determining that the at least one frame of the first data ismatched with the at least one frame of the second data, playing a secondaudio file generated by processing the source audio file through theglobal sound effect service.
 6. The method according to claim 1, whereinprocessing, by the mobile terminal, the source audio file through theglobal sound effect service comprises: decoding the source audio fileinto a reference audio file; and configuring the reference audio filethrough the global sound effect service according to a pre-stored globalsound effect parameter.
 7. The method according to claim 6, wherein theglobal sound effect parameter or the application-level sound effectparameter comprises at least one of the following parameters: a Compressparameter, an Amp-Type parameter, an EQ_Bass parameter, an EQ_Midparameter, an EQ_Treble parameter or a Noise_Gate parameter.
 8. Themethod according to claim 1, wherein detecting the playing controlinstruction configured to indicate the application of the mobileterminal to play the source audio file comprises: responsive todetection of a first selection operation for the source audio file ofthe mobile terminal, outputting a player selection interface comprisingthe application; and responsive to detection of a second selectionoperation for the application in the player selection interface,generating the playing control instruction configured to indicate theapplication to play the source audio file.
 9. The method according toclaim 6, wherein acquiring the at least one frame of the second data inthe current playing process of the application comprises: responsive todetection of the application being preset with the application-levelsound effect parameter, configuring the source audio file by using asound effect configuration process or thread of the applicationaccording to the application-level sound effect parameter of theapplication to generate third data, acquiring, through a sound effectconfiguration service of the mobile terminal, the first data and thethird data, and superimposing the first data over the third data toobtain the second data; or, responsive to detection of the applicationnot being preset with the application-level sound effect parameter,acquiring the global sound effect parameter of the mobile terminal,configuring the source audio file by using the sound effectconfiguration process or thread of the application according to theglobal sound effect parameter to generate the third data, acquiring,through the sound effect configuration service of the mobile terminal,the first data and the third data, and superimposing the first data overthe third data to obtain the second data, wherein the first data, thesecond data and the third data are the same.
 10. A mobile terminal,comprising a processor and one or more units stored on a memory andexecutable by the processor, the one or more units comprising: a firstacquisition unit, configured to, responsive to detection of a playingcontrol instruction configured to indicate an application of a mobileterminal to play a source audio file, acquire at least one frame offirst data generated when the mobile terminal processes the source audiofile through a global sound effect service; a second acquisition unit,configured to acquire at least one frame of second data in a currentplaying process of the application; a service disabling unit, configuredto, when determining that the at least one frame of the first data ismismatched with the at least one frame of the second data, disable theglobal sound effect service; and a first playing control unit,configured to play a first audio file obtained by processing the sourceaudio file according to an application-level sound effect parameter ofthe application.
 11. The mobile terminal according to claim 10, whereinthe first acquisition unit comprises: a judgment unit, configured todetermine whether the application belongs to a preset application set;and a third acquisition unit, configured to, when the judgment unitdetermines that the application does not belong to the presetapplication set, acquire the at least one frame of the first datagenerated when the mobile terminal processes the source audio filethrough the global sound effect service.
 12. The mobile terminalaccording to claim 11, further comprising: an application addition unit,configured to, after the service disabling unit disables the globalsound effect service and before the playing control unit plays the firstaudio file obtained by processing the source audio file according to theapplication-level sound effect parameter of the application, add theapplication into the preset application set.
 13. The mobile terminalaccording to claim 11, further comprising: a second playing controlunit, configured to, when the judgment unit determines that theapplication belongs to the preset application set, disable the globalsound effect service and play the first audio file obtained byprocessing the source audio file according to the application-levelsound effect parameter of the application.
 14. The mobile terminalaccording to claim 10, further comprising: a third playing control unit,configured to, when determining that the at least one frame of the firstdata is matched with the at least one frame of the second data, play asecond audio file generated by processing the source audio file throughthe global sound effect service.
 15. The mobile terminal according toclaim 10, wherein on the aspect that the mobile terminal processes thesource audio file through the global sound effect service, the firstacquisition unit is configured to: decode the source audio file into areference audio file; and configure the reference audio file through theglobal sound effect service according to a pre-stored global soundeffect parameter.
 16. The mobile terminal according to claim 15, whereinthe global sound effect parameter or the application-level sound effectparameter comprises at least one of the following parameters: a Compressparameter, an Amp-Type parameter, an EQ_Bass parameter, an EQ_Midparameter, an EQ_Treble parameter or a Noise_Gate parameter.
 17. Themobile terminal according to claim 10, wherein the first acquisitionunit comprises a detection unit, and the detection unit is configuredto, responsive to detection of a first selection operation for thesource audio file of the mobile terminal, output a player selectioninterface comprising the application, and responsive to detection of asecond selection operation for the application in the player selectioninterface, generate the playing control instruction configured toindicate the application to play the source audio file.
 18. The mobileterminal according to claim 15, wherein the second acquisition unit isconfigured to, responsive to detection of the application being presetwith the application-level sound effect parameter, configure the sourceaudio file by using a sound effect configuration process or thread ofthe application according to the application-level sound effectparameter of the application to generate third data, acquire, throughsound effect configuration service of the mobile terminal, the firstdata and the third data, and superimpose the first data over the thirddata to obtain the second data; or, responsive to detection of theapplication not being preset with the application-level sound effectparameter, acquire the global sound effect parameter of the mobileterminal, configure the source audio file by using the sound effectconfiguration process or thread of the application according to theglobal sound effect parameter to generate the third data, acquire,through the sound effect configuration service of the mobile terminal,the first data and the third data, and superimpose the first data overthe third data to obtain the second data, wherein the first data, thesecond data and the third data are the same. 19-20. (canceled)
 21. Anon-transitory computer-readable storage medium, storing a computerprogram thereon, which when the computer program is executed by acomputer, causes the computer to carry out one or more actions, the oneor more actions comprising: responsive to detection of a playing controlinstruction configured to indicate an application of a mobile terminalto play a source audio file, acquiring at least one frame of first datagenerated when the mobile terminal processes the source audio filethrough a global sound effect service; acquiring at least one frame ofsecond data in a current playing process of the application; whendetermining that the at least one frame of the first data is mismatchedwith the at least one frame of the second data, disabling the globalsound effect service; and playing a first audio file obtained byprocessing the source audio file according to an application-level soundeffect parameter of the application.
 22. The storage medium according toclaim 21, wherein acquiring the at least one frame of the first datagenerated when the mobile terminal processes the source audio filethrough the global sound effect service comprises: determining whetherthe application belongs to a preset application set; and whendetermining that the application does not belong to the presetapplication set, acquiring the at least one frame of the first datagenerated when the mobile terminal processes the source audio filethrough the global sound effect service.